﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Supermarket.Dal
{
    public static class CashboxDB
    {
        public static decimal GetCash()
        {
            DataClassesSupermarketDataContext db = new DataClassesSupermarketDataContext();
            var cashbox =
                from cbox in db.CashBoxes
                select cbox;
            
            return cashbox.First().Cash;
        }
    }
}
